package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderTotalData;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderTotalDataExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderTotalDataMapper {
    long countByExample(DirectMailGoodsOrderTotalDataExample example);

    int deleteByExample(DirectMailGoodsOrderTotalDataExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DirectMailGoodsOrderTotalData record);

    int insertSelective(@Param("record") DirectMailGoodsOrderTotalData record, @Param("selective") DirectMailGoodsOrderTotalData.Column ... selective);

    DirectMailGoodsOrderTotalData selectOneByExample(DirectMailGoodsOrderTotalDataExample example);

    List<DirectMailGoodsOrderTotalData> selectByExample(DirectMailGoodsOrderTotalDataExample example);

    DirectMailGoodsOrderTotalData selectByPrimaryKey(Integer id);

    DirectMailGoodsOrderTotalData selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderTotalData record, @Param("example") DirectMailGoodsOrderTotalDataExample example, @Param("selective") DirectMailGoodsOrderTotalData.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderTotalData record, @Param("example") DirectMailGoodsOrderTotalDataExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderTotalData record, @Param("selective") DirectMailGoodsOrderTotalData.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderTotalData record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderTotalData> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderTotalData> list, @Param("selective") DirectMailGoodsOrderTotalData.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderTotalDataExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}